﻿@model Kojarskiy.Models.LocalPasswordModel
@{
    ViewBag.Title = "Смена пароля пользователя";
}

<p class="message-success">@ViewBag.StatusMessage</p>

@using (Html.BeginForm("Manage", "Account", FormMethod.Post, new {@class="form-horizontal", role="form"})) 
{
    @Html.AntiForgeryToken()
    
    <div class="form-group">
        <div class="col-sm-2 control-label">
            
        </div>
        <div class="col-sm-10">
            <h1>@ViewBag.Title</h1>
            <p>Вы вошли как <strong>@User.Identity.Name</strong></p>
            <div class="bg-danger" >@Html.ValidationSummary()</div>
        </div>
    </div>    
    
    <div class="form-group">
        
        <label for="UserName" class="col-sm-2 control-label">Старый пароль</label>    

        <div class="col-sm-10">
            @Html.PasswordFor(m => m.NewPassword, new {@class = "form-control"})
        </div>

   </div> 
   <div class="form-group">     
        <label for="Password" class="col-sm-2 control-label">Новый пароль</label>    

       <div class="col-sm-10">
           @Html.PasswordFor(m => m.NewPassword, new {@class = "form-control"})
           @Html.ValidationMessageFor(m => m.NewPassword)
       </div>
    </div> 
    
   <div class="form-group">
        <label for="Password" class="col-sm-2 control-label">Подтверждение пароля</label>    

        <div class="col-sm-10">
            @Html.PasswordFor(m => m.ConfirmPassword, new {@class = "form-control"})
        </div>
    </div> 
    
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-default">Сменить</button>
        </div>
    </div>    
}


